/**
 * Holds a price.
 * @author Joshua Harris
 * @version 1.0
 */
public class Price {
	
	/**
	 * dollars - the dollars.<BR>
	 * cents - the cents.<BR>
	 */
	private int dollars, cents; // $codepro.audit.disable com.instantiations.assist.eclipse.analysis.unassignedField
	
	/**
	 * creates a price
	 * @param dollars the amount of dollars.
	 * @param cents the amount of cents.
	 */
	public Price(int dollars, int cents){
		this.dollars = dollars;
		this.cents = cents;
	}
	
	/**
	 * gets the dollars
	 * @return the dollars
	 */
	public int getDollars(){
		return dollars;
	}
	
	/**
	 * gets the cents.
	 * @return the cents.
	 */
	public int getCents(){
		return cents;
	}
	
	/**
	 * returns a string of price
	 * @return price.
	 */
	public String toString(){
		return "$" + dollars + "." + cents;
	}
	
}
